/*
 * @Description: 资源需求方
 * @Author: iamsmiling
 * @Date: 2021-06-06 12:05:38
 * @LastEditTime: 2021-06-06 12:10:23
 */
/*
 * @Description: 资源提供方
 * @Author: iamsmiling
 * @Date: 2021-06-06 11:47:26
 * @LastEditTime: 2021-06-06 12:04:28
 */

import 'package:credit_business_circle/R/R.dart';
import 'package:credit_business_circle/pages/publish_square/children/publish_center/widget/selector_text_field.dart';
import 'package:credit_business_circle/pages/publish_square/children/publish_center/widget/text_field_label_tip.dart';
import 'package:flutter/material.dart';

class SourceDemanderFormCard extends StatelessWidget {
  const SourceDemanderFormCard({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.all(R.dimen.dp10),
      padding: EdgeInsets.only(
          top: R.dimen.dp20, left: R.dimen.dp10, right: R.dimen.dp10),
      decoration: BoxDecoration(
          color: R.color.ffffffff,
          borderRadius: BorderRadius.circular(R.dimen.sp5)),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          TextFieldLableTip(
            label: "需求资源",
          ),
          Container(
            margin: EdgeInsets.only(top: R.dimen.dp12, bottom: R.dimen.dp20),
            padding: EdgeInsets.all(R.dimen.dp12),
            decoration:
                BoxDecoration(border: Border.all(color: R.color.ffcccccc)),
            child: TextFormField(
              maxLines: 8,
              decoration: InputDecoration(
                  hintText:
                      "填写合作描述及我需要资源内容，限20行\n例：\n 1、推广渠道要求\n 2、其它合作详情说明..."),
            ),
          ),
          SelectorTextField(
            label: "有效时间",
            dividerColor: R.color.transparent,
            hintText: "2021-07-08(到期后信息会自动下架)",
          )
        ],
      ),
    );
  }
}
